﻿<Window x:Class="VoiceTestPlatform.NetworkStatusWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="网络状态记录" Height="480" Width="640">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        <!--菜单项-->
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="当前网络状态："></TextBlock>
            <TextBlock Text="{Binding CurrentStatus}"></TextBlock>
        </StackPanel>
        <ListView Grid.Row="1" ItemsSource="{Binding Records}" ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                      ScrollViewer.VerticalScrollBarVisibility="Auto">
            <ListView.View>
                <GridView AllowsColumnReorder="true" ColumnHeaderToolTip="结果视图">
                    <GridViewColumn DisplayMemberBinding= "{Binding Path=TimeString}"   Header="时间" Width="200"/>

                    <GridViewColumn DisplayMemberBinding="{Binding Path=Status}"  Header="状态" Width="100">
                    </GridViewColumn>
                
                </GridView>
            </ListView.View>
        </ListView>
        <StackPanel Orientation="Horizontal" Grid.Row="2">
            <Button Style="{StaticResource FooterButton}" Command="{Binding ResultToExcelCommand}">导出Excel</Button>
           
        </StackPanel>
    </Grid>
</Window>
